/**
 * Copyright 2009 Adam Ruggles.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.google.code.sapien;

/**
 * Action Constants.
 * @author Adam
 * @version $Id: ActionConstants.java 19 2009-04-28 02:02:20Z a.ruggles $
 * 
 * Created on Feb 8, 2009 at 2:51:31 PM 
 */
public final class ActionConstants {
	/**
	 * The action execution was successful. Show the add page to the end user. 
	 */
	public static final String ADD = "add";

	/**
	 * The action execution was successful. Show the create page to the end user. 
	 */
	public static final String CREATE = "create";

	/**
	 * The action execution was successful. Show the edit page to the end user. 
	 */
	public static final String EDIT = "edit";

	/**
	 * The action execution was successful. Show the list page to the end user. 
	 */
	public static final String LIST = "list";

	/**
	 * The action execution was successful. Show the show page to the end user. 
	 */
	public static final String SHOW = "show";

	/**
	 * The action execution was successful. Show the update page to the end user. 
	 */
	public static final String UPDATE = "update";

	/**
	 * The cookie name for the persistent login.
	 */
	public static final String USER_PERSISTENT_LOGIN = "sapien_key";

	/**
	 * The age of the persistent login cookie.
	 * Set cookie to live for 30 days. (30 days * 24 hours * 60 minutes * 60 seconds).
	 */
	public static final int USER_PERSISTENT_LOGIN_AGE = 30 * 24 * 60 * 60;

	/**
	 * The Key used to store the logged in user in the session.
	 */
	public static final String USER_SESSION = "sapien"; 
	/**
	 * Private constructor.
	 */
	private ActionConstants() { }
}
